import { axios as request  } from '@/utils/request'
import qs from 'qs'

export function getList({params}) {
  return request({
    url: 'api/finance/check/page?' + qs.stringify(params, {indices: false, encode: false}),
    method: 'get'
  })
}

export function get(id) {
  return request({
    url: `api/finance/check/detail/${id}`,
    method: 'get',
  })
}

export function repeal(id, data) {
  return request({
    url: `api/finance/check/repeal/${id}`,
    method: 'put',
    data
  })
}

export function reconciliationSettle(data) {
  return request({
    url: `api/finance/check/reconciliationSettle`,
    method: 'post',
    data
  })
}